#include <stdio.h>
#include <string.h>

int main()
{
	FILE *f;
	char tstr[100];
	char tstring1[1000];

	f=fopen("Tskip.txt","r");
	fgets(tstr, 100, f);
	while(!feof(f))
	{
		int tlen;
		tlen = strlen(tstr);
		strncpy(tstring1,tstr,tlen-2);
		printf("tlen: %d\n", tlen-2);
		tstring1[tlen-2]='\0';
		if(fopen(tstring1,"r")==NULL)
			printf("open fail %s\n",tstring1);	
		fgets(tstr, 100, f);
	}
	fclose(f);
	return 0;
}
